import axios from "axios";


export const getlistcat = (params = {}) =>
    axios({
        url: "/api/cats/lv2",
        method: "get",
        params
    });
export const getlistcatdetail = major =>
    axios({
        url: `/api/book/by-categories?gender=female&type=hot&major=${major}&minor=&start=0&limit=20`,
        method: "get"
    });

export const getlistpublic = (params = {}) =>
    axios({
        url: "/api/cats/lv2",
        method: "get",
        params
    });
export const getlistpublicdetail = major =>
    axios({
        url: `/api/book/by-categories?gender=press&type=hot&major=${major}&minor=&start=0&limit=20`,
        method: "get"
    });

export const getdomid = (id) =>
    axios({
        url: `/api/mix-atoc/${id}`,
        method: "get",
    });

export const getlistmale = (params = {}) =>
    axios({
        url: "/api/cats/lv2",
        method: "get",
        params
    });
export const getlistmaledetail = (major) =>
    axios({
        url: `/api/book/by-categories?type=hot&major=${major}&minor=&start=0&limit=20`,
        method: "get"
    });